﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ds.DataBase.Model
{
    /// <summary>
    /// 得分表
    /// </summary>
    public class KaoHeDeFenHuiZong
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int dfid { set; get; }
        /// <summary>
        /// 所属人账号
        /// </summary>
        public string username { set; get; }
        /// <summary>
        /// 工作计划总分
        /// </summary>
        [Obsolete("This attribute is obsolete; No longer used afterwards")]
        public decimal gzjhdf { set; get; }
        /// <summary>
        /// 绩效总分
        /// </summary>
        [Obsolete("This attribute is obsolete; No longer used afterwards")]
        public decimal jxdf { set; get; }
        /// <summary>
        /// 附加项总分
        /// </summary>
        public decimal fjx { set; get; }
        /// <summary>
        /// 考核表Id
        /// </summary>
        public int mkhbid { set; get; }
        /// <summary>
        /// 绩效考核模板Id
        /// </summary>
        public int mbid { set; get; }
        /// <summary>
        /// 所属人职务Id
        /// </summary>
        public int zwid { set; get; }
        /// <summary>
        /// 绩效类型
        /// </summary>
        public int jxmblx { set; get; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime cjsj { set; get; }
        public 得分表状态 dfbzt { set; get; }
        /// <summary>
        /// 批次号
        /// </summary>
        public string pch { set; get; }
        /// <summary>
        /// 所属时间
        /// </summary>
        public DateTime sssj { set; get; }
        /// <summary>
        /// 确认集
        /// </summary>
        public virtual ICollection<KaoHeChengJiQueRen> KaoHeChengJiQueRens { set; get; }
        public enum 得分表状态
        {
            考核中 = 1,
            考核完成 = 2
        }
        /// <summary>
        /// 考核表中的分项汇总MyKoaHeBiao_one
        /// </summary>
        public virtual ICollection<KaoHeDeFenFenXiang> KaoHeDeFenFenXiangs { set; get; }
    }
}
